import { StickerGroup } from '#/type';
import apiClient from '../apiClient';

class StickerService {
  //新接口
  // 获取全部图库组
  get_sticker_group() {
    return apiClient.get<any>({
      url: `/common/designer/getStickerGroup`,
      params: {},
    });
  }
  // 添加图库分组
  add_sticker_group(parent_id?: number) {}
  // 删除图库分组
  del_sticker_group(sticker_group_id: number) {}
  // 更新图库分组
  updata_sticker_group(stickerGropp: Partial<StickerGroup>) {}
  //通过组id获取图库
  get_sticker(stickerParams: {
    groupId: number;
    pageNo: number;
    pageSize: number;
    disable?: string | 0 | 1;
    searchValue?: string;
  }) {
    return apiClient.get<any>({
      url: `/common/designer/getStickerPage`,
      params: stickerParams,
    });
  }

  checkStickerGroupAllBothDisableContro(params: any) {}

  updateStickerGroupSortContro(params: any) {}

  addStickerGroup(params: any) {}

  reallyDelStickerGroup(params: any) {}

  updateStickerGroupNameById(params: any) {}
  updateStickerGroupStatus(params: any) {}
  updateStickerStatus(params: any) {}
  updateStickerName(params: any) {}

  addStickerContro(params: any) {}
  reallyDelSticker(params: any) {}

  getStickerList(params: any) {}

  updateStickerSortContro(params: any) {}
}
const stickerService = new StickerService();

export default stickerService;
